package com.lenovo.spider.exceptions;

/**
 * @author <a href="mailto:liuhan3@lenovo.com">HanL(liuhan3)</a>
 * on 2018/3/30 11:42
 */
public class SpiderException extends RuntimeException {
    /**
     * 异常的操作
     */
    private final OP op;


    public SpiderException(OP op, String message) {
        super(message);
        this.op = op;
    }

    public enum OP {
        /**
         * 忽略异常
         */
        IGNORE,
        /**
         * 重试任务
         */
        RETRY;
    }

}
